package aspect;

/**
 * 业务类
 * @author lcx
 *
 */
public class BusinessClass {

	private String businessmsg="商务合同";
	
	
	public String getBusinessmsg() {
		return businessmsg;
	}

	public void setBusinessmsg(String businessmsg) {
		this.businessmsg = businessmsg;
	}

	public void doJobException() throws Exception
	{
		System.out.println("BusinessClass is doing its Exception job");
		throw new Exception("BusinessClass.doJobException() 出现异常");
	}
	
	public void doJobBefore()
	{
		System.out.println("BusinessClass is doing its Before job");
	}
	
	/**
	 * 可以传递参数businessmsg给通知方法
	 * @param businessmsg
	 */
	public void doJobAfter(String businessmsg)
	{
		this.businessmsg=businessmsg;
		System.out.println("BusinessClass is doing its After job");

	}
	
	public void doJobAround()
	{
		System.out.println("BusinessClass is doing its Around job");

	}

}
